package cn.china.myspringboot.controller;


import cn.china.myspringboot.entity.Student;
import cn.china.myspringboot.serviceimpl.StudentServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jyz
 * @since 2022-12-26
 */
@RestController
@RequestMapping("/student")
@Api(tags = "学生相关的功能")
public class StudentController {

    @Autowired
    StudentServiceImpl studentService;


    @RequestMapping("/selectById")
    @ApiOperation("根据学号查询")
    @ApiImplicitParams({@ApiImplicitParam(name="学号",value = "Integer")})
    public Student selectById(Integer id){
        return studentService.selectById(id);
    }





}
